package com.cee.service;

import com.cee.dto.CompletionDTO;
import com.cee.model.Completion;

import java.util.List;

public interface CompletionService {

    int saveCompletion(Completion completion) throws Exception;


    /**
     * 查询列表 del_date_time is null
     * @param completionDTO
     * @return
     */
    List<CompletionDTO> getCompletionList(CompletionDTO completionDTO);


    /**
     * 查询List
     * @param examId
     * @return
     */
    List<CompletionDTO> getListByExamId(Integer examId);


    /**
     * 逻辑删除， del_date_time = now
     * @param id
     */
    void  deleteCompletion(Integer id);
}
